
import Home from '../views/home';
import Detail from '../views/detail';
import Login from '../views/login';
import Center from '../views/center';
import Result from '../views/result';
import Error from '../views/404';

import BaseOut from '../layouts/BaseLayout';



const routes = [
  {
    path: '/login',
    element: <Login />
  },
  {
    path: '/',
    element: <BaseOut />,
    children: [
      {
        path: '/home',
        element: <Home />
      },
      {
        path: '/detail',
        element: <Detail />
      },
      {
        path: '/center',
        element: <Center />
      },
      {
        path: '/result',
        element: <Result />
      },
    ]
  },
  {
    path: '/*',
    element: <Error />
  },
  
]

export default routes;